package cci.pojo;

import java.io.Serializable;

public class Personne implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String login;
	private String passwd;

	public Personne() {
		id = 0;
		login = null;
		passwd = null;
	}

	public Personne(int id, String nom, String prenom) {
		this.id = id;
		this.login = nom;
		this.passwd = prenom;
	}

	public Personne(String nom, String prenom) {
		id = 0;
		this.login = nom;
		this.passwd = prenom;
	}

	public synchronized int getId() {
		return id;
	}

	public synchronized void setId(int id) {
		this.id = id;
	}

	public synchronized String getLogin() {
		return login;
	}

	public synchronized void setLogin(String login) {
		this.login = login;
	}

	public synchronized String getPasswd() {
		return passwd;
	}

	public synchronized void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	@Override
	public String toString() {
		return "Personne [id=" + id + ", nom=" + login + ", prenom=" + passwd
				+ "]";
	}

}
